<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 实例化
        const data = new FormData()
        console.log(data)
        // append用来追加数据
        data.append('name1', '奥特曼')
        data.append('skill', '打小怪兽')
        console.log(data.get('skill'))

        // 1. FormData是浏览器提供的内置对象
        // 2. 以key/value的形式保存数据
        // 3. 能够结合ajax进行数据提交
    </script>
</body>

</html>